package com.uzhie.jt808.msg;

import io.netty.channel.ChannelHandlerContext;

import java.io.Serializable;

/**
 * Created by TangFei on 2018/7/16.
 * 808协议消息包
 */
public class JT808MsgBean implements Serializable {

    // 消息头
    private JT808MsgHeaderBean header;
    // 消息体 长度最大为 1023 字节
    private byte[] bodyBytes;
    // 校验码
    private int checkCode;

    private ChannelHandlerContext channelHandlerContext;

    public byte[] getBodyBytes() {
        return bodyBytes;
    }

    public void setBodyBytes(byte[] bodyBytes) {
        this.bodyBytes = bodyBytes;
    }

    public JT808MsgHeaderBean getHeader() {
        return header;
    }

    public void setHeader(JT808MsgHeaderBean header) {
        this.header = header;
    }

    public int getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(int checkCode) {
        this.checkCode = checkCode;
    }

    public ChannelHandlerContext getChannelHandlerContext() {
        return channelHandlerContext;
    }

    public void setChannelHandlerContext(ChannelHandlerContext channelHandlerContext) {
        this.channelHandlerContext = channelHandlerContext;
    }
}
